<template>
  <button class="bi-plus-button" title="创建" @click="handleClick">
    <span class="bi-plus-button__icon"></span>
  </button>
</template>
<script>
export default {
  name: 'BiPlusButton',
  methods: {
    handleClick () {
      this.$emit('click')
    }
  }
}
</script>
<style lang="less">
.bi-plus-button{
  display: inline-block;
  width: 32px;
  height: 32px;
  border-radius: 3px;
  text-align: center;
  cursor: pointer;
  transition: all .25s;
  background-color: transparent;
  padding: 0;
  border-width: 0;
  &:hover{
    background-color: rgba(0,0,0,.06);
  }
}
.bi-plus-button__icon{
  display: inline-block;
  vertical-align: top;
  width: 18px;
  height: 18px;
  background-color: #006ad4;
  border-radius: 50%;
  position: relative;
  &:after,&:before {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background-color: #fff;
  }
  &:after {
    width: 1px;
    height: 8px;
  }
  &:before {
    width: 8px;
    height: 1px;
  }
}
</style>
